/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * SCDN相关接口
 * Openapi For JCLOUD cdn
 *
 * OpenAPI spec version: v1
 * Contact: pid-cdn@jd.com
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;

namespace  JDCloudSDK.Cdn.Apis
{

    /// <summary>
    ///  修改指定的白名单规则
    /// </summary>
    public class UpdateWafWhiteRuleRequest : JdcloudRequest
    {
        ///<summary>
        /// 白名单类型， uri ip geo
        ///</summary>
        public   string RuleType{ get; set; }
        ///<summary>
        /// 匹配模式,uri类型有效，0&#x3D;完全匹配  1&#x3D;前缀匹配 2&#x3D;包含 3&#x3D;正则 4&#x3D;大于 5&#x3D;后缀
        ///</summary>
        public   int? MatchOp{ get; set; }
        ///<summary>
        /// 匹配值
        ///</summary>
        public   string Val{ get; set; }
        ///<summary>
        /// 后续处理 &quot;waf&quot; &quot;cc&quot; &quot;deny&quot;自由组合，空表示跳过后续所有阶段
        ///</summary>
        public List<string> Actions{ get; set; }

        ///<summary>
        /// 用户域名
        ///Required:true
        ///</summary>
        [Required]
        public   string Domain{ get; set; }
        ///<summary>
        /// 需要修改的白名单ID
        ///Required:true
        ///</summary>
        [Required]
        public   string Id{ get; set; }
    }
}